
const { imgPath } = require("./data/config");

let promiseList = [];
let taskbar = document.createElement('div');
taskbar.classList.add('taskbar');

let winBtn = document.createElement('div');
let winBtnImg = document.createElement('img');
winBtn.classList.add('winBtn');
winBtnImg.src = imgPath + '/assets/image/svg/win11.svg';
promiseList.push(new Promise((resolve, reject) => {
    winBtnImg.onload = function (e) {
        resolve();
    };
}));
Promise.all(promiseList).then(res => {
    winBtn.append(winBtnImg);
    taskbar.append(winBtn);
})
exports.taskbarDom = taskbar;